package cn.tedu.csmall.order.webapi.mapper;

import cn.tedu.csmall.commons.pojo.order.model.Order;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

@Repository
public interface OrderMapper {

    // 新增订单的方法
    @Insert("INSERT INTO order_tbl(user_id,commodity_code,count,money) " +
            "VALUES(#{userId},#{commodityCode},#{count},#{money})")
    int insertOrder(Order order);

}
